package com.beamfield.dao.sys;

import com.beamfield.model.AttendMachine;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AttendMachineMapper {
    int insert(AttendMachine record);

    int insertSelective(AttendMachine record);

    int updateByPrimaryKeySelective(AttendMachine record);

    List<AttendMachine> gerMachineData(@Param("offset") String offset,@Param("limit") String limit,@Param("beamId") Long beamId);

    long countMachineData(@Param("beamId") Long beamId);

    AttendMachine selectByAttendDeviceId(@Param("beamId") Long beamId,@Param("attendDeviceId") String attendDeviceId);

    List<AttendMachine> getAttendMachineByWorkCode(@Param("workCode") String workCode,@Param("beamId") Long beamId);

    int delete(@Param("attendDeviceId") String attendDeviceId,@Param("beamId") Long beamId);
}